package com.springbootnetty.controller;


import com.springbootnetty.entity.TbDev;
import com.springbootnetty.mapper.TbDevMapper;
import com.springbootnetty.result.CommonResult;
import com.springbootnetty.server.InServer;
import com.springbootnetty.vo.TbDevVo;
import com.springbootnetty.vo.TbGpsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


import javax.annotation.Resource;
import java.util.List;


@Api(tags = "设备接口")
@RestController
@RequestMapping("/dev")
public class DevController {

    @Resource
    TbDevMapper tbDevMapper;


    @ApiOperation("获取设备集合")
    @GetMapping("/getDev")
    private CommonResult<List<TbDevVo>> getDev() {
       List<TbDevVo> tbDevVos=tbDevMapper.selectListAll();
        return CommonResult.success(tbDevVos);
    }


}
